package org.gy.T4;

public class Movie {
    private String name; //电影名称
    private double score; //评分
    private String actor; //演员
    //⽆参数构造⽅法
    public Movie(){}
    //全参数构造⽅法
    public Movie(String name, double score, String actor){
        this.name=name;
        this.score=score;
        this.actor=actor;
    }
//...get、set、toString()⽅法⾃⼰补上..
    String getName(){
        return name;
    }
    private void setName(String name){
        this.name=name;
    }
    double getScore(){
        return score;
    }
    private void setScore(double score){
        this.score=score;
    }
    String getActor(){
        return actor;
    }
    private void setActor(String actor){
        this.actor=actor;
    }
}
